package org.jeecg.modules.product.lawsRegulations.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;

import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 安全制度
 * @Author: jeecg-boot
 * @Date:   2024-07-07
 * @Version: V1.0
 */
@Data
@TableName("tb_laws_safety_system")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Schema(description="安全制度")
public class TbLawsSafetySystem implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "主键")
    private String id;
	/**创建人*/
    @Schema(description = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "创建日期")
    private Date createTime;
	/**更新人*/
    @Schema(description = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @Schema(description = "所属部门")
    private String sysOrgCode;
	/**安全制度编码*/
	@Excel(name = "安全制度编码", width = 15)
    @Schema(description = "安全制度编码")
    private String number;
	/**版本号*/
	@Excel(name = "版本号", width = 15)
    @Schema(description = "版本号")
    private Double version;
	/**安全制度名称*/
	@Excel(name = "安全制度名称", width = 15)
    @Schema(description = "安全制度名称")
    private String name;
	/**安全制度分类*/
	@Excel(name = "安全制度分类", width = 15, dicCode = "safetySystemType")
	@Dict(dicCode = "safetySystemType")
    @Schema(description = "安全制度分类")
    private String type;
	/**所属部门*/
	@Excel(name = "所属部门", width = 15, dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
	@Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
    @Schema(description = "所属部门")
    private String subDepart;
	/**发布日期*/
	@Excel(name = "发布日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @Schema(description = "发布日期")
    private Date releaseDate;
	/**是否现行*/
	@Excel(name = "是否现行", width = 15)
    @Schema(description = "是否现行")
    private String currentOrNot;
	/**启用日期*/
	@Excel(name = "启用日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @Schema(description = "启用日期")
    private Date startDate;
	/**适用部门*/
	@Excel(name = "适用部门", width = 15, dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
	@Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
    @Schema(description = "适用部门")
    private String applicableDepart;
	/**制度内容*/
	@Excel(name = "制度内容", width = 15)
    @Schema(description = "制度内容")
    private String content;
	/**说明*/
	@Excel(name = "说明", width = 15)
    @Schema(description = "说明")
    private String remarks;
	/**制度相关附件*/
	@Excel(name = "制度相关附件", width = 15)
    @Schema(description = "制度相关附件")
    private String doc;
	/**编制人*/
	@Excel(name = "编制人", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username")
	@Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @Schema(description = "编制人")
    private String organizer;
	/**评审日期*/
	@Excel(name = "评审日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @Schema(description = "评审日期")
    private Date reviewDate;
	/**评审人*/
	@Excel(name = "评审人", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username")
	@Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @Schema(description = "评审人")
    private String assessor;
	/**参评人员*/
	@Excel(name = "参评人员", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username")
	@Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @Schema(description = "参评人员")
    private String evaluator;
	/**评审相关附件*/
	@Excel(name = "评审相关附件", width = 15)
    @Schema(description = "评审相关附件")
    private String reviewDoc;
	/**评审意见*/
	@Excel(name = "评审意见", width = 15)
    @Schema(description = "评审意见")
    private String reviewComments;
	/**状态*/
	@Excel(name = "状态", width = 15, dicCode = "normalOrStop")
	@Dict(dicCode = "normalOrStop")
    @Schema(description = "状态")
    private String deleted;
	/**租户id*/
	@Excel(name = "租户id", width = 15)
    @Schema(description = "租户id")
    private String tenantId;
}
